package com.jie.myvhr.common;

import com.jie.myvhr.bean.Hr;
import org.springframework.security.core.context.SecurityContextHolder;

/**
 * @author jie
 * @date 2019/6/28 -15:47
 */
public class HrUtils {
    public static Hr getCurrentHr(){
        return (Hr) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
    }
}
